package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 药品库存改变记录对象 med_med_stock_record
 * 
 * @author yangxp
 * @date 2020-08-07
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("med_med_stock_record")
public class MedStockRecord implements Serializable {

private static final long serialVersionUID=1L;


    /** $column.columnComment */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** $column.columnComment */
    @TableId(value = "msr_id", type = IdType.AUTO)
    private String msrId;


    @TableId(value = "mo_id", type = IdType.AUTO)
    private String moId;

    @TableId(value = "po_id", type = IdType.AUTO)
    private String poId;

    /** $column.columnComment */
    @TableId(value = "med_id", type = IdType.AUTO)
    private String medId;

    /** $column.columnComment */
    @Excel(name = "${comment}" , readConverterExp = "$column.readConverterExp()")

    private String medName;

    /** 老库存量 */
    @Excel(name = "老库存量")

    private BigDecimal oldStock;

    /** 新库存量 */
    @Excel(name = "新库存量")

    private BigDecimal newStock;

    /** 改变量 */
    @Excel(name = "改变量")

    private BigDecimal changeAmount;

    /** 改变类型 */
    @Excel(name = "改变类型")

    private Integer changeType;

    /** $column.columnComment */
    @Excel(name = "改变类型" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")

    private Date gmtCreate;

    /** $column.columnComment */
    @Excel(name = "改变类型" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")

    private Date gmtModified;

    /** $column.columnComment */

    private Integer isDeleted;
}
